package app.service;

import app.pojo.Employee;

import java.util.List;

public interface EmployeeService {
    //查询所有记录
    public List<Employee> listEmployee();

    //按id查询
    public Employee queryById(Integer id);

    //按姓名模糊查询
    public List<Employee> queryByUsername(String username);

    //保存用户
    public boolean addEmployee(Employee employee);

    //根据员工id删除
    public boolean deleteEmployeeById(Integer id);

    //修改员工信息
    public boolean editEmployee(Employee employee);
}
